<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="{%$templates%}/admin.css">
<link type="text/css" rel="stylesheet" href="{%$library%}/yui/fonts.css">
<link type="text/css" rel="stylesheet" href="{%$library%}/yui/container.css">

<script type="text/javascript" src="{%$library%}/yui/yahoo.js"></script>
<script type="text/javascript" src="{%$library%}/yui/event.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/dom.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/container.js" ></script>

<style>

img.ico_dis {
	filter: progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4), progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
	-moz-opacity: 0.4;
	opacity:.40;
}

img.ico_act {
	filter: progid:DXImageTransform.Microsoft.BasicImage(opacity=1), progid:DXImageTransform.Microsoft.BasicImage(grayscale=0);
	-moz-opacity: 1;
	opacity:1;
}

</style>

<script type="text/javascript">
<!--

function SetCurrent(p)
{
	var ul = document.getElementById('nav');
	var li = ul.getElementsByTagName('LI');

	for(var i = 0; i < li.length; i++)
	{
		var a = li[i].childNodes[0];
		a.className = '';
	}

	if(p != false)
	{
		p.className = "current";
		parent.frames[1].focus();
	}
}

function Dis(img, sw, capt)
{
	cp = document.getElementById('caption');

	if(sw == true)
	{
		cp.innerHTML = capt;
		img.className = "ico_act";
	} else
	{
		cp.innerHTML = "<a href='http://artinet.com.ua/' class='sgrey' target='_blank'>ArtiNet</a> &nbsp; Version: {%$version%}";
		img.className = "ico_dis";
	}
}

YAHOO.namespace("meccano");

YAHOO.meccano.tt1 = new YAHOO.widget.Tooltip("tt1", { context:"blo", text:"Выход из системы администрирования." });
YAHOO.meccano.tt2 = new YAHOO.widget.Tooltip("tt2", { context:"bmp", text:"Перейти на главную страницу сайта." });
YAHOO.meccano.tt3 = new YAHOO.widget.Tooltip("tt3", { context:"bpu", text:"Редактирование пользовательских данных." });
YAHOO.meccano.tt4 = new YAHOO.widget.Tooltip("tt4", { context:"bcs", text:"Конфигурирование системы." });

//-->
</script>

</head>
<body bgcolor='#ff9900' marginheight='0' topmargin='0'>
<table border='0' cellpadding='0' cellspacing='1' width='100%' style="margin: 0;">
<tr bgcolor='#ffffff'>
<td width='160px' height='78px' style='padding-bottom: 0px' valign='bottom'>

<div style="padding-left:10px">

<a href='index.php?logout=1' target='_parent' onclick="if(confirm('Вы действительно хотите выйти из системы управления?') == false) return false; ">
<img src="{%$templates%}/img/lock_32.png" width="32" height="32" border="0" onmouseover="Dis(this, true, 'Выход');" onmouseout="Dis(this, false, '');" onclick="parent.frames[1].focus();" class="ico_dis" id="blo"></a>

<a href='../' target='_parent'>
<img src="{%$templates%}/img/home_32.png" width="32" height="32" border="0" onmouseover="Dis(this, true, 'Главная сайта');" onmouseout="Dis(this, false, '');" onclick="parent.frames[1].focus();" class="ico_dis" id="bmp"></a>

<a href='user.php' target='_mod'>
<img src="{%$templates%}/img/user_32.png" width="32" height="32" border="0" onmouseover="Dis(this, true, 'Профиль');" onmouseout="Dis(this, false, '');" onclick="parent.frames[1].focus();" class="ico_dis" id="bpu"></a>

{%if $root_permission eq true%}
<a href='config.php' target='_mod' onclick="SetCurrent(false);">
<img src="{%$templates%}/img/config_32.png" width="32" height="32" border="0" onmouseover="Dis(this, true, 'Конфигурация');" onmouseout="Dis(this, false, '');" onclick="parent.frames[1].focus();" class="ico_dis" id="bcs"></a>
{%/if%}

</div>

<div >
<div class="lmid darkgrey" style="height:18px; background-color:#f4f4f4; padding: 3px 5px;" id="caption" align="center"><a href='http://artinet.com.ua/' class='sgrey' target="_blank">ArtiNet</a> &nbsp; Version: {%$version%}</div>

</td>
<td valign='bottom'>
	<div id="m_nav">
	{%foreach item=value key=key from=$modules name=n%}
		{%if $smarty.foreach.n.first%}<ul id="nav">{%/if%}
         {%if $value.adminfile && $value.sys eq 0%}
            <li><a href="{%$value.adminfile%}?m={%$value.id%}" title="{%$value.title%}" target='_mod' onclick="SetCurrent(this);" class="">{%$value.title%}</a></li>
         {%/if%}
		{%if $smarty.foreach.n.last%}</ul>{%/if%}
	{%/foreach%}
	</div>
</td>
</tr>
</table>

</body>
</html>